#include <stdio.h>
#include <stdlib.h>

#define M 20
typedef char DataType;
typedef struct node
{
    int adjvex;
    struct node *next;
} EdgeNode;
typedef struct vnode
{
    DataType vertex;
    EdgeNode *Firstedge;
} VertexNode;
typedef struct
{
    VertexNode adjlist[M];
    int n, e;
} LinkedGraph;